import React, { memo,PureComponent } from 'react';
import { Card, Radio,Select,Button } from 'antd';
import { Row,Col,FormattedMessage } from 'umi-plugin-react/locale';
import styles from './Analysis.less';
import PoliceStaticLine from './PoliceStaticLine';
import Yuan from '@/utils/Yuan';
const { Option } = Select;
class PoliceStaticTrend extends PureComponent{
	constructor(props) {
	    super(props);
	    this.state = {
          staffBaseInfoType: 'police_zjj',
          policeType: 'police_cg',
          policeTitle: "总警监",
          policeOneZjj: [
            {
                year: "2010",
                type: "申报",
                num: 20,
                addnum: 10,
                percent: 5
            },
            {
                year: "2010",
                type: "审核",
                num: 15,
                addnum: 8,
                percent: 3
            },
            {
                year: "2010",
                type: "审批",
                num: 10,
                addnum: 5,
                percent: 2
            },
            {
                year: "2011",
                type: "申报",
                num: 30,
                addnum: 10,
                percent: 5
            },
            {
                year: "2011",
                type: "审核",
                num: 25,
                addnum: 8,
                percent: 3
            },
            {
                year: "2011",
                type: "审批",
                num: 20,
                addnum: 5,
                percent: 2
            },
            {
                year: "2012",
                type: "申报",
                num: 35,
                addnum: 10,
                percent: 5
            },
            {
                year: "2012",
                type: "审核",
                num: 30,
                addnum: 8,
                percent: 3
            },
            {
                year: "2012",
                type: "审批",
                num: 25,
                addnum: 5,
                percent: 2
            },
            {
                year: "2013",
                type: "申报",
                num: 40,
                addnum: 10,
                percent: 5
            },
            {
                year: "2013",
                type: "审核",
                num: 35,
                addnum: 8,
                percent: 3
            },
            {
                year: "2013",
                type: "审批",
                num: 30,
                addnum: 5,
                percent: 2
            },
            {
                year: "2014",
                type: "申报",
                num: 35,
                addnum: 10,
                percent: 5
            },
            {
                year: "2014",
                type: "审核",
                num: 32,
                addnum: 8,
                percent: 3
            },
            {
                year: "2014",
                type: "审批",
                num: 28,
                addnum: 5,
                percent: 2
            },
            {
                year: "2015",
                type: "申报",
                num: 45,
                addnum: 10,
                percent: 5
            },
            {
                year: "2015",
                type: "审核",
                num: 40,
                addnum: 8,
                percent: 3
            },
            {
                year: "2015",
                type: "审批",
                num: 36,
                addnum: 5,
                percent: 2
            },
            {
                year: "2016",
                type: "申报",
                num: 50,
                addnum: 10,
                percent: 5
            },
            {
                year: "2016",
                type: "审核",
                num: 45,
                addnum: 8,
                percent: 3
            },
            {
                year: "2016",
                type: "审批",
                num: 40,
                addnum: 5,
                percent: 2
            },
            {
                year: "2017",
                type: "申报",
                num: 60,
                addnum: 10,
                percent: 5
            },
            {
                year: "2017",
                type: "审核",
                num: 55,
                addnum: 8,
                percent: 3
            },
            {
                year: "2017",
                type: "审批",
                num: 50,
                addnum: 5,
                percent: 2
            },
            {
                year: "2018",
                type: "申报",
                num: 65,
                addnum: 10,
                percent: 5
            },
            {
                year: "2018",
                type: "审核",
                num: 60,
                addnum: 8,
                percent: 3
            },
            {
                year: "2018",
                type: "审批",
                num: 55,
                addnum: 5,
                percent: 2
            },
            {
                year: "2019",
                type: "申报",
                num: 70,
                addnum: 10,
                percent: 5
            },
            {
                year: "2019",
                type: "审核",
                num: 65,
                addnum: 8,
                percent: 3
            },
            {
                year: "2019",
                type: "审批",
                num: 60,
                addnum: 5,
                percent: 2
            },
          ],
          policeTwoFzjj: [
            {
                year: "2010",
                type: "申报",
                num: 50,
                addnum: 10,
                percent: 5
            },
            {
                year: "2010",
                type: "审核",
                num: 45,
                addnum: 8,
                percent: 3
            },
            {
                year: "2010",
                type: "审批",
                num: 40,
                addnum: 5,
                percent: 2
            },
            {
                year: "2011",
                type: "申报",
                num: 60,
                addnum: 10,
                percent: 5
            },
            {
                year: "2011",
                type: "审核",
                num: 55,
                addnum: 8,
                percent: 3
            },
            {
                year: "2011",
                type: "审批",
                num: 50,
                addnum: 5,
                percent: 2
            },
            {
                year: "2012",
                type: "申报",
                num: 65,
                addnum: 10,
                percent: 5
            },
            {
                year: "2012",
                type: "审核",
                num: 55,
                addnum: 8,
                percent: 3
            },
            {
                year: "2012",
                type: "审批",
                num: 50,
                addnum: 5,
                percent: 2
            },
            {
                year: "2013",
                type: "申报",
                num: 70,
                addnum: 10,
                percent: 5
            },
            {
                year: "2013",
                type: "审核",
                num: 65,
                addnum: 8,
                percent: 3
            },
            {
                year: "2013",
                type: "审批",
                num: 60,
                addnum: 5,
                percent: 2
            },
            {
                year: "2014",
                type: "申报",
                num: 60,
                addnum: 10,
                percent: 5
            },
            {
                year: "2014",
                type: "审核",
                num: 55,
                addnum: 8,
                percent: 3
            },
            {
                year: "2014",
                type: "审批",
                num: 50,
                addnum: 5,
                percent: 2
            },
            {
                year: "2015",
                type: "申报",
                num: 70,
                addnum: 10,
                percent: 5
            },
            {
                year: "2015",
                type: "审核",
                num: 65,
                addnum: 8,
                percent: 3
            },
            {
                year: "2015",
                type: "审批",
                num: 60,
                addnum: 5,
                percent: 2
            },
            {
                year: "2016",
                type: "申报",
                num: 75,
                addnum: 10,
                percent: 5
            },
            {
                year: "2016",
                type: "审核",
                num: 70,
                addnum: 8,
                percent: 3
            },
            {
                year: "2016",
                type: "审批",
                num: 65,
                addnum: 5,
                percent: 2
            },
            {
                year: "2017",
                type: "申报",
                num: 80,
                addnum: 10,
                percent: 5
            },
            {
                year: "2017",
                type: "审核",
                num: 75,
                addnum: 8,
                percent: 3
            },
            {
                year: "2017",
                type: "审批",
                num: 70,
                addnum: 5,
                percent: 2
            },
            {
                year: "2018",
                type: "申报",
                num: 90,
                addnum: 10,
                percent: 5
            },
            {
                year: "2018",
                type: "审核",
                num: 85,
                addnum: 8,
                percent: 3
            },
            {
                year: "2018",
                type: "审批",
                num: 80,
                addnum: 5,
                percent: 2
            },
            {
                year: "2019",
                type: "申报",
                num: 100,
                addnum: 10,
                percent: 5
            },
            {
                year: "2019",
                type: "审核",
                num: 90,
                addnum: 8,
                percent: 3
            },
            {
                year: "2019",
                type: "审批",
                num: 85,
                addnum: 5,
                percent: 2
            },
          ],
          policeOneJj: [
            {
                year: "2010",
                type: "申报",
                num: 100,
                addnum: 10,
                percent: 5
            },
            {
                year: "2010",
                type: "审核",
                num: 90,
                addnum: 10,
                percent: 5
            },
            {
                year: "2010",
                type: "审批",
                num: 80,
                addnum: 10,
                percent: 5
            },
            {
                year: "2011",
                type: "申报",
                num: 120,
                addnum: 10,
                percent: 5
            },
            {
                year: "2011",
                type: "审核",
                num: 110,
                addnum: 10,
                percent: 5
            },
            {
                year: "2011",
                type: "审批",
                num: 100,
                addnum: 10,
                percent: 5
            },
            {
                year: "2012",
                type: "申报",
                num: 130,
                addnum: 10,
                percent: 5
            },
            {
                year: "2012",
                type: "审核",
                num: 120,
                addnum: 10,
                percent: 5
            },
            {
                year: "2012",
                type: "审批",
                num: 110,
                addnum: 10,
                percent: 5
            },
            {
                year: "2013",
                type: "申报",
                num: 140,
                addnum: 10,
                percent: 5
            },
            {
                year: "2013",
                type: "审核",
                num: 130,
                addnum: 10,
                percent: 5
            },
            {
                year: "2013",
                type: "审批",
                num: 120,
                addnum: 10,
                percent: 5
            },
            {
                year: "2014",
                type: "申报",
                num: 150,
                addnum: 10,
                percent: 5
            },
            {
                year: "2014",
                type: "审核",
                num: 140,
                addnum: 10,
                percent: 5
            },
            {
                year: "2014",
                type: "审批",
                num: 130,
                addnum: 10,
                percent: 5
            },
            {
                year: "2015",
                type: "申报",
                num: 160,
                addnum: 10,
                percent: 5
            },
            {
                year: "2015",
                type: "审核",
                num: 150,
                addnum: 10,
                percent: 5
            },
            {
                year: "2015",
                type: "审批",
                num: 140,
                addnum: 10,
                percent: 5
            },
            {
                year: "2016",
                type: "申报",
                num: 170,
                addnum: 10,
                percent: 5
            },
            {
                year: "2016",
                type: "审核",
                num: 160,
                addnum: 10,
                percent: 5
            },
            {
                year: "2016",
                type: "审批",
                num: 150,
                addnum: 10,
                percent: 5
            },
            {
                year: "2017",
                type: "申报",
                num: 180,
                addnum: 10,
                percent: 5
            },
            {
                year: "2017",
                type: "审核",
                num: 170,
                addnum: 10,
                percent: 5
            },
            {
                year: "2017",
                type: "审批",
                num: 160,
                addnum: 10,
                percent: 5
            },
            {
                year: "2018",
                type: "申报",
                num: 190,
                addnum: 10,
                percent: 5
            },
            {
                year: "2018",
                type: "审核",
                num: 180,
                addnum: 10,
                percent: 5
            },
            {
                year: "2018",
                type: "审批",
                num: 170,
                addnum: 10,
                percent: 5
            },
            {
                year: "2019",
                type: "申报",
                num: 200,
                addnum: 10,
                percent: 5
            },
            {
                year: "2019",
                type: "审核",
                num: 190,
                addnum: 10,
                percent: 5
            },
            {
                year: "2019",
                type: "审批",
                num: 180,
                addnum: 10,
                percent: 5
            },
          ],
          policeTwoJj: [
            {
                year: "2010",
                type: "申报",
                num: 100,
                addnum: 8,
                percent: 3
            },
            {
                year: "2010",
                type: "审核",
                num: 90,
                addnum: 8,
                percent: 3
            },
            {
                year: "2010",
                type: "审批",
                num: 80,
                addnum: 8,
                percent: 3
            },
            {
                year: "2011",
                type: "申报",
                num: 200,
                addnum: 8,
                percent: 3
            },
            {
                year: "2011",
                type: "审核",
                num: 180,
                addnum: 8,
                percent: 3
            },
            {
                year: "2011",
                type: "审批",
                num: 150,
                addnum: 8,
                percent: 3
            },
            {
                year: "2012",
                type: "申报",
                num: 180,
                addnum: 8,
                percent: 3
            },
            {
                year: "2012",
                type: "审核",
                num: 160,
                addnum: 8,
                percent: 3
            },
            {
                year: "2012",
                type: "审批",
                num: 140,
                addnum: 8,
                percent: 3
            },
            {
                year: "2013",
                type: "申报",
                num: 170,
                addnum: 8,
                percent: 3
            },
            {
                year: "2013",
                type: "审核",
                num: 150,
                addnum: 8,
                percent: 3
            },
            {
                year: "2013",
                type: "审批",
                num: 120,
                addnum: 8,
                percent: 3
            },
            {
                year: "2014",
                type: "申报",
                num: 220,
                addnum: 8,
                percent: 3
            },
            {
                year: "2014",
                type: "审核",
                num: 190,
                addnum: 8,
                percent: 3
            },
            {
                year: "2014",
                type: "审批",
                num: 160,
                addnum: 8,
                percent: 3
            },
            {
                year: "2015",
                type: "申报",
                num: 220,
                addnum: 8,
                percent: 3
            },
            {
                year: "2015",
                type: "审核",
                num: 190,
                addnum: 8,
                percent: 3
            },
            {
                year: "2015",
                type: "审批",
                num: 160,
                addnum: 8,
                percent: 3
            },
            {
                year: "2016",
                type: "申报",
                num: 260,
                addnum: 8,
                percent: 3
            },
            {
                year: "2016",
                type: "审核",
                num: 230,
                addnum: 8,
                percent: 3
            },
            {
                year: "2016",
                type: "审批",
                num: 200,
                addnum: 8,
                percent: 3
            },
            {
                year: "2017",
                type: "申报",
                num: 210,
                addnum: 8,
                percent: 3
            },
            {
                year: "2017",
                type: "审核",
                num: 190,
                addnum: 8,
                percent: 3
            },
            {
                year: "2017",
                type: "审批",
                num: 170,
                addnum: 8,
                percent: 3
            },
            {
                year: "2018",
                type: "申报",
                num: 200,
                addnum: 8,
                percent: 3
            },
            {
                year: "2018",
                type: "审核",
                num: 170,
                addnum: 8,
                percent: 3
            },
            {
                year: "2018",
                type: "审批",
                num: 150,
                addnum: 8,
                percent: 3
            },
            {
                year: "2019",
                type: "申报",
                num: 280,
                addnum: 8,
                percent: 3
            },
            {
                year: "2019",
                type: "审核",
                num: 240,
                addnum: 8,
                percent: 3
            },
            {
                year: "2019",
                type: "审批",
                num: 220,
                addnum: 8,
                percent: 3
            },
          ],
          policeThreeJj: [
            {
                year: "2010",
                type: "申报",
                num: 100,
                addnum: 5,
                percent: 2
            },
            {
                year: "2010",
                type: "审核",
                num: 90,
                addnum: 5,
                percent: 2
            },
            {
                year: "2010",
                type: "审批",
                num: 80,
                addnum: 5,
                percent: 2
            },
            {
                year: "2011",
                type: "申报",
                num: 230,
                addnum: 5,
                percent: 2
            },
            {
                year: "2011",
                type: "审核",
                num: 220,
                addnum: 5,
                percent: 2
            },
            {
                year: "2011",
                type: "审批",
                num: 210,
                addnum: 5,
                percent: 2
            },
            {
                year: "2012",
                type: "申报",
                num: 200,
                addnum: 5,
                percent: 2
            },
            {
                year: "2012",
                type: "审核",
                num: 190,
                addnum: 5,
                percent: 2
            },
            {
                year: "2012",
                type: "审批",
                num: 180,
                addnum: 5,
                percent: 2
            },
            {
                year: "2013",
                type: "申报",
                num: 170,
                addnum: 5,
                percent: 2
            },
            {
                year: "2013",
                type: "审核",
                num: 150,
                addnum: 5,
                percent: 2
            },
            {
                year: "2013",
                type: "审批",
                num: 120,
                addnum: 5,
                percent: 2
            },
            {
                year: "2014",
                type: "申报",
                num: 210,
                addnum: 5,
                percent: 2
            },
            {
                year: "2014",
                type: "审核",
                num: 180,
                addnum: 5,
                percent: 2
            },
            {
                year: "2014",
                type: "审批",
                num: 160,
                addnum: 5,
                percent: 2
            },
            {
                year: "2015",
                type: "申报",
                num: 220,
                addnum: 5,
                percent: 2
            },
            {
                year: "2015",
                type: "审核",
                num: 190,
                addnum: 5,
                percent: 2
            },
            {
                year: "2015",
                type: "审批",
                num: 160,
                addnum: 5,
                percent: 2
            },
            {
                year: "2016",
                type: "申报",
                num: 260,
                addnum: 5,
                percent: 2
            },
            {
                year: "2016",
                type: "审核",
                num: 230,
                addnum: 5,
                percent: 2
            },
            {
                year: "2016",
                type: "审批",
                num: 200,
                addnum: 5,
                percent: 2
            },
            {
                year: "2017",
                type: "申报",
                num: 240,
                addnum: 5,
                percent: 2
            },
            {
                year: "2017",
                type: "审核",
                num: 210,
                addnum: 5,
                percent: 2
            },
            {
                year: "2017",
                type: "审批",
                num: 190,
                addnum: 5,
                percent: 2
            },
            {
                year: "2018",
                type: "申报",
                num: 200,
                addnum: 5,
                percent: 2
            },
            {
                year: "2018",
                type: "审核",
                num: 170,
                addnum: 5,
                percent: 2
            },
            {
                year: "2018",
                type: "审批",
                num: 150,
                addnum: 5,
                percent: 2
            },
            {
                year: "2019",
                type: "申报",
                num: 300,
                addnum: 5,
                percent: 2
            },
            {
                year: "2019",
                type: "审核",
                num: 280,
                addnum: 5,
                percent: 2
            },
            {
                year: "2019",
                type: "审批",
                num: 260,
                addnum: 5,
                percent: 2
            },
          ],
          policeOneJd: [
            {
                year: "2010",
                type: "申报",
                num: 100,
                addnum: 6,
                percent: 3
            },
            {
                year: "2010",
                type: "审核",
                num: 90,
                addnum: 6,
                percent: 3
            },
            {
                year: "2010",
                type: "审批",
                num: 80,
                addnum: 6,
                percent: 3
            },
            {
                year: "2011",
                type: "申报",
                num: 200,
                addnum: 6,
                percent: 3
            },
            {
                year: "2011",
                type: "审核",
                num: 180,
                addnum: 6,
                percent: 3
            },
            {
                year: "2011",
                type: "审批",
                num: 150,
                addnum: 6,
                percent: 3
            },
            {
                year: "2012",
                type: "申报",
                num: 200,
                addnum: 6,
                percent: 3
            },
            {
                year: "2012",
                type: "审核",
                num: 180,
                addnum: 6,
                percent: 3
            },
            {
                year: "2012",
                type: "审批",
                num: 170,
                addnum: 6,
                percent: 3
            },
            {
                year: "2013",
                type: "申报",
                num: 170,
                addnum: 6,
                percent: 3
            },
            {
                year: "2013",
                type: "审核",
                num: 150,
                addnum: 6,
                percent: 3
            },
            {
                year: "2013",
                type: "审批",
                num: 120,
                addnum: 6,
                percent: 3
            },
            {
                year: "2014",
                type: "申报",
                num: 220,
                addnum: 6,
                percent: 3
            },
            {
                year: "2014",
                type: "审核",
                num: 190,
                addnum: 6,
                percent: 3
            },
            {
                year: "2014",
                type: "审批",
                num: 160,
                addnum: 6,
                percent: 3
            },
            {
                year: "2015",
                type: "申报",
                num: 260,
                addnum: 6,
                percent: 3
            },
            {
                year: "2015",
                type: "审核",
                num: 240,
                addnum: 6,
                percent: 3
            },
            {
                year: "2015",
                type: "审批",
                num: 220,
                addnum: 6,
                percent: 3
            },
            {
                year: "2016",
                type: "申报",
                num: 260,
                addnum: 6,
                percent: 3
            },
            {
                year: "2016",
                type: "审核",
                num: 230,
                addnum: 6,
                percent: 3
            },
            {
                year: "2016",
                type: "审批",
                num: 200,
                addnum: 6,
                percent: 3
            },
            {
                year: "2017",
                type: "申报",
                num: 210,
                addnum: 6,
                percent: 3
            },
            {
                year: "2017",
                type: "审核",
                num: 190,
                addnum: 6,
                percent: 3
            },
            {
                year: "2017",
                type: "审批",
                num: 170,
                addnum: 6,
                percent: 3
            },
            {
                year: "2018",
                type: "申报",
                num: 230,
                addnum: 6,
                percent: 3
            },
            {
                year: "2018",
                type: "审核",
                num: 210,
                addnum: 6,
                percent: 3
            },
            {
                year: "2018",
                type: "审批",
                num: 200,
                addnum: 6,
                percent: 3
            },
            {
                year: "2019",
                type: "申报",
                num: 280,
                addnum: 6,
                percent: 3
            },
            {
                year: "2019",
                type: "审核",
                num: 240,
                addnum: 6,
                percent: 3
            },
            {
                year: "2019",
                type: "审批",
                num: 220,
                addnum: 6,
                percent: 3
            },
          ],
          policeOneZjjZY: [
            {
                year: "2010",
                type: "申报",
                num: 20,
                addnum: 10,
                percent: 5
            },
            {
                year: "2010",
                type: "审核",
                num: 15,
                addnum: 8,
                percent: 3
            },
            {
                year: "2010",
                type: "审批",
                num: 10,
                addnum: 5,
                percent: 2
            },
            {
                year: "2011",
                type: "申报",
                num: 30,
                addnum: 10,
                percent: 5
            },
            {
                year: "2011",
                type: "审核",
                num: 25,
                addnum: 8,
                percent: 3
            },
            {
                year: "2011",
                type: "审批",
                num: 20,
                addnum: 5,
                percent: 2
            },
            {
                year: "2012",
                type: "申报",
                num: 35,
                addnum: 10,
                percent: 5
            },
            {
                year: "2012",
                type: "审核",
                num: 30,
                addnum: 8,
                percent: 3
            },
            {
                year: "2012",
                type: "审批",
                num: 25,
                addnum: 5,
                percent: 2
            },
            {
                year: "2013",
                type: "申报",
                num: 40,
                addnum: 10,
                percent: 5
            },
            {
                year: "2013",
                type: "审核",
                num: 35,
                addnum: 8,
                percent: 3
            },
            {
                year: "2013",
                type: "审批",
                num: 30,
                addnum: 5,
                percent: 2
            },
            {
                year: "2014",
                type: "申报",
                num: 35,
                addnum: 10,
                percent: 5
            },
            {
                year: "2014",
                type: "审核",
                num: 32,
                addnum: 8,
                percent: 3
            },
            {
                year: "2014",
                type: "审批",
                num: 28,
                addnum: 5,
                percent: 2
            },
            {
                year: "2015",
                type: "申报",
                num: 45,
                addnum: 10,
                percent: 5
            },
            {
                year: "2015",
                type: "审核",
                num: 40,
                addnum: 8,
                percent: 3
            },
            {
                year: "2015",
                type: "审批",
                num: 36,
                addnum: 5,
                percent: 2
            },
            {
                year: "2016",
                type: "申报",
                num: 50,
                addnum: 10,
                percent: 5
            },
            {
                year: "2016",
                type: "审核",
                num: 45,
                addnum: 8,
                percent: 3
            },
            {
                year: "2016",
                type: "审批",
                num: 40,
                addnum: 5,
                percent: 2
            },
            {
                year: "2017",
                type: "申报",
                num: 60,
                addnum: 10,
                percent: 5
            },
            {
                year: "2017",
                type: "审核",
                num: 55,
                addnum: 8,
                percent: 3
            },
            {
                year: "2017",
                type: "审批",
                num: 50,
                addnum: 5,
                percent: 2
            },
            {
                year: "2018",
                type: "申报",
                num: 65,
                addnum: 10,
                percent: 5
            },
            {
                year: "2018",
                type: "审核",
                num: 60,
                addnum: 8,
                percent: 3
            },
            {
                year: "2018",
                type: "审批",
                num: 55,
                addnum: 5,
                percent: 2
            },
            {
                year: "2019",
                type: "申报",
                num: 70,
                addnum: 10,
                percent: 5
            },
            {
                year: "2019",
                type: "审核",
                num: 65,
                addnum: 8,
                percent: 3
            },
            {
                year: "2019",
                type: "审批",
                num: 60,
                addnum: 5,
                percent: 2
            },
          ],
          policeTwoFzjjZY: [
            {
                year: "2010",
                type: "申报",
                num: 50,
                addnum: 10,
                percent: 5
            },
            {
                year: "2010",
                type: "审核",
                num: 45,
                addnum: 8,
                percent: 3
            },
            {
                year: "2010",
                type: "审批",
                num: 40,
                addnum: 5,
                percent: 2
            },
            {
                year: "2011",
                type: "申报",
                num: 60,
                addnum: 10,
                percent: 5
            },
            {
                year: "2011",
                type: "审核",
                num: 55,
                addnum: 8,
                percent: 3
            },
            {
                year: "2011",
                type: "审批",
                num: 50,
                addnum: 5,
                percent: 2
            },
            {
                year: "2012",
                type: "申报",
                num: 65,
                addnum: 10,
                percent: 5
            },
            {
                year: "2012",
                type: "审核",
                num: 55,
                addnum: 8,
                percent: 3
            },
            {
                year: "2012",
                type: "审批",
                num: 50,
                addnum: 5,
                percent: 2
            },
            {
                year: "2013",
                type: "申报",
                num: 70,
                addnum: 10,
                percent: 5
            },
            {
                year: "2013",
                type: "审核",
                num: 65,
                addnum: 8,
                percent: 3
            },
            {
                year: "2013",
                type: "审批",
                num: 60,
                addnum: 5,
                percent: 2
            },
            {
                year: "2014",
                type: "申报",
                num: 60,
                addnum: 10,
                percent: 5
            },
            {
                year: "2014",
                type: "审核",
                num: 55,
                addnum: 8,
                percent: 3
            },
            {
                year: "2014",
                type: "审批",
                num: 50,
                addnum: 5,
                percent: 2
            },
            {
                year: "2015",
                type: "申报",
                num: 70,
                addnum: 10,
                percent: 5
            },
            {
                year: "2015",
                type: "审核",
                num: 65,
                addnum: 8,
                percent: 3
            },
            {
                year: "2015",
                type: "审批",
                num: 60,
                addnum: 5,
                percent: 2
            },
            {
                year: "2016",
                type: "申报",
                num: 75,
                addnum: 10,
                percent: 5
            },
            {
                year: "2016",
                type: "审核",
                num: 70,
                addnum: 8,
                percent: 3
            },
            {
                year: "2016",
                type: "审批",
                num: 65,
                addnum: 5,
                percent: 2
            },
            {
                year: "2017",
                type: "申报",
                num: 80,
                addnum: 10,
                percent: 5
            },
            {
                year: "2017",
                type: "审核",
                num: 75,
                addnum: 8,
                percent: 3
            },
            {
                year: "2017",
                type: "审批",
                num: 70,
                addnum: 5,
                percent: 2
            },
            {
                year: "2018",
                type: "申报",
                num: 90,
                addnum: 10,
                percent: 5
            },
            {
                year: "2018",
                type: "审核",
                num: 85,
                addnum: 8,
                percent: 3
            },
            {
                year: "2018",
                type: "审批",
                num: 80,
                addnum: 5,
                percent: 2
            },
            {
                year: "2019",
                type: "申报",
                num: 100,
                addnum: 10,
                percent: 5
            },
            {
                year: "2019",
                type: "审核",
                num: 90,
                addnum: 8,
                percent: 3
            },
            {
                year: "2019",
                type: "审批",
                num: 85,
                addnum: 5,
                percent: 2
            },
          ],
          policeOneJjZY: [
            {
                year: "2010",
                type: "申报",
                num: 100,
                addnum: 10,
                percent: 5
            },
            {
                year: "2010",
                type: "审核",
                num: 90,
                addnum: 10,
                percent: 5
            },
            {
                year: "2010",
                type: "审批",
                num: 80,
                addnum: 10,
                percent: 5
            },
            {
                year: "2011",
                type: "申报",
                num: 120,
                addnum: 10,
                percent: 5
            },
            {
                year: "2011",
                type: "审核",
                num: 110,
                addnum: 10,
                percent: 5
            },
            {
                year: "2011",
                type: "审批",
                num: 100,
                addnum: 10,
                percent: 5
            },
            {
                year: "2012",
                type: "申报",
                num: 130,
                addnum: 10,
                percent: 5
            },
            {
                year: "2012",
                type: "审核",
                num: 120,
                addnum: 10,
                percent: 5
            },
            {
                year: "2012",
                type: "审批",
                num: 110,
                addnum: 10,
                percent: 5
            },
            {
                year: "2013",
                type: "申报",
                num: 140,
                addnum: 10,
                percent: 5
            },
            {
                year: "2013",
                type: "审核",
                num: 130,
                addnum: 10,
                percent: 5
            },
            {
                year: "2013",
                type: "审批",
                num: 120,
                addnum: 10,
                percent: 5
            },
            {
                year: "2014",
                type: "申报",
                num: 150,
                addnum: 10,
                percent: 5
            },
            {
                year: "2014",
                type: "审核",
                num: 140,
                addnum: 10,
                percent: 5
            },
            {
                year: "2014",
                type: "审批",
                num: 130,
                addnum: 10,
                percent: 5
            },
            {
                year: "2015",
                type: "申报",
                num: 160,
                addnum: 10,
                percent: 5
            },
            {
                year: "2015",
                type: "审核",
                num: 150,
                addnum: 10,
                percent: 5
            },
            {
                year: "2015",
                type: "审批",
                num: 140,
                addnum: 10,
                percent: 5
            },
            {
                year: "2016",
                type: "申报",
                num: 170,
                addnum: 10,
                percent: 5
            },
            {
                year: "2016",
                type: "审核",
                num: 160,
                addnum: 10,
                percent: 5
            },
            {
                year: "2016",
                type: "审批",
                num: 150,
                addnum: 10,
                percent: 5
            },
            {
                year: "2017",
                type: "申报",
                num: 180,
                addnum: 10,
                percent: 5
            },
            {
                year: "2017",
                type: "审核",
                num: 170,
                addnum: 10,
                percent: 5
            },
            {
                year: "2017",
                type: "审批",
                num: 160,
                addnum: 10,
                percent: 5
            },
            {
                year: "2018",
                type: "申报",
                num: 190,
                addnum: 10,
                percent: 5
            },
            {
                year: "2018",
                type: "审核",
                num: 180,
                addnum: 10,
                percent: 5
            },
            {
                year: "2018",
                type: "审批",
                num: 170,
                addnum: 10,
                percent: 5
            },
            {
                year: "2019",
                type: "申报",
                num: 200,
                addnum: 10,
                percent: 5
            },
            {
                year: "2019",
                type: "审核",
                num: 190,
                addnum: 10,
                percent: 5
            },
            {
                year: "2019",
                type: "审批",
                num: 180,
                addnum: 10,
                percent: 5
            },
          ],
          policeTwoJjZY: [
            {
                year: "2010",
                type: "申报",
                num: 100,
                addnum: 8,
                percent: 3
            },
            {
                year: "2010",
                type: "审核",
                num: 90,
                addnum: 8,
                percent: 3
            },
            {
                year: "2010",
                type: "审批",
                num: 80,
                addnum: 8,
                percent: 3
            },
            {
                year: "2011",
                type: "申报",
                num: 200,
                addnum: 8,
                percent: 3
            },
            {
                year: "2011",
                type: "审核",
                num: 180,
                addnum: 8,
                percent: 3
            },
            {
                year: "2011",
                type: "审批",
                num: 150,
                addnum: 8,
                percent: 3
            },
            {
                year: "2012",
                type: "申报",
                num: 180,
                addnum: 8,
                percent: 3
            },
            {
                year: "2012",
                type: "审核",
                num: 160,
                addnum: 8,
                percent: 3
            },
            {
                year: "2012",
                type: "审批",
                num: 140,
                addnum: 8,
                percent: 3
            },
            {
                year: "2013",
                type: "申报",
                num: 170,
                addnum: 8,
                percent: 3
            },
            {
                year: "2013",
                type: "审核",
                num: 150,
                addnum: 8,
                percent: 3
            },
            {
                year: "2013",
                type: "审批",
                num: 120,
                addnum: 8,
                percent: 3
            },
            {
                year: "2014",
                type: "申报",
                num: 220,
                addnum: 8,
                percent: 3
            },
            {
                year: "2014",
                type: "审核",
                num: 190,
                addnum: 8,
                percent: 3
            },
            {
                year: "2014",
                type: "审批",
                num: 160,
                addnum: 8,
                percent: 3
            },
            {
                year: "2015",
                type: "申报",
                num: 220,
                addnum: 8,
                percent: 3
            },
            {
                year: "2015",
                type: "审核",
                num: 190,
                addnum: 8,
                percent: 3
            },
            {
                year: "2015",
                type: "审批",
                num: 160,
                addnum: 8,
                percent: 3
            },
            {
                year: "2016",
                type: "申报",
                num: 260,
                addnum: 8,
                percent: 3
            },
            {
                year: "2016",
                type: "审核",
                num: 230,
                addnum: 8,
                percent: 3
            },
            {
                year: "2016",
                type: "审批",
                num: 200,
                addnum: 8,
                percent: 3
            },
            {
                year: "2017",
                type: "申报",
                num: 210,
                addnum: 8,
                percent: 3
            },
            {
                year: "2017",
                type: "审核",
                num: 190,
                addnum: 8,
                percent: 3
            },
            {
                year: "2017",
                type: "审批",
                num: 170,
                addnum: 8,
                percent: 3
            },
            {
                year: "2018",
                type: "申报",
                num: 200,
                addnum: 8,
                percent: 3
            },
            {
                year: "2018",
                type: "审核",
                num: 170,
                addnum: 8,
                percent: 3
            },
            {
                year: "2018",
                type: "审批",
                num: 150,
                addnum: 8,
                percent: 3
            },
            {
                year: "2019",
                type: "申报",
                num: 280,
                addnum: 8,
                percent: 3
            },
            {
                year: "2019",
                type: "审核",
                num: 240,
                addnum: 8,
                percent: 3
            },
            {
                year: "2019",
                type: "审批",
                num: 220,
                addnum: 8,
                percent: 3
            },
          ],
          policeThreeJjZY: [
            {
                year: "2010",
                type: "申报",
                num: 100,
                addnum: 5,
                percent: 2
            },
            {
                year: "2010",
                type: "审核",
                num: 90,
                addnum: 5,
                percent: 2
            },
            {
                year: "2010",
                type: "审批",
                num: 80,
                addnum: 5,
                percent: 2
            },
            {
                year: "2011",
                type: "申报",
                num: 230,
                addnum: 5,
                percent: 2
            },
            {
                year: "2011",
                type: "审核",
                num: 220,
                addnum: 5,
                percent: 2
            },
            {
                year: "2011",
                type: "审批",
                num: 210,
                addnum: 5,
                percent: 2
            },
            {
                year: "2012",
                type: "申报",
                num: 200,
                addnum: 5,
                percent: 2
            },
            {
                year: "2012",
                type: "审核",
                num: 190,
                addnum: 5,
                percent: 2
            },
            {
                year: "2012",
                type: "审批",
                num: 180,
                addnum: 5,
                percent: 2
            },
            {
                year: "2013",
                type: "申报",
                num: 170,
                addnum: 5,
                percent: 2
            },
            {
                year: "2013",
                type: "审核",
                num: 150,
                addnum: 5,
                percent: 2
            },
            {
                year: "2013",
                type: "审批",
                num: 120,
                addnum: 5,
                percent: 2
            },
            {
                year: "2014",
                type: "申报",
                num: 210,
                addnum: 5,
                percent: 2
            },
            {
                year: "2014",
                type: "审核",
                num: 180,
                addnum: 5,
                percent: 2
            },
            {
                year: "2014",
                type: "审批",
                num: 160,
                addnum: 5,
                percent: 2
            },
            {
                year: "2015",
                type: "申报",
                num: 220,
                addnum: 5,
                percent: 2
            },
            {
                year: "2015",
                type: "审核",
                num: 190,
                addnum: 5,
                percent: 2
            },
            {
                year: "2015",
                type: "审批",
                num: 160,
                addnum: 5,
                percent: 2
            },
            {
                year: "2016",
                type: "申报",
                num: 260,
                addnum: 5,
                percent: 2
            },
            {
                year: "2016",
                type: "审核",
                num: 230,
                addnum: 5,
                percent: 2
            },
            {
                year: "2016",
                type: "审批",
                num: 200,
                addnum: 5,
                percent: 2
            },
            {
                year: "2017",
                type: "申报",
                num: 240,
                addnum: 5,
                percent: 2
            },
            {
                year: "2017",
                type: "审核",
                num: 210,
                addnum: 5,
                percent: 2
            },
            {
                year: "2017",
                type: "审批",
                num: 190,
                addnum: 5,
                percent: 2
            },
            {
                year: "2018",
                type: "申报",
                num: 200,
                addnum: 5,
                percent: 2
            },
            {
                year: "2018",
                type: "审核",
                num: 170,
                addnum: 5,
                percent: 2
            },
            {
                year: "2018",
                type: "审批",
                num: 150,
                addnum: 5,
                percent: 2
            },
            {
                year: "2019",
                type: "申报",
                num: 300,
                addnum: 5,
                percent: 2
            },
            {
                year: "2019",
                type: "审核",
                num: 280,
                addnum: 5,
                percent: 2
            },
            {
                year: "2019",
                type: "审批",
                num: 260,
                addnum: 5,
                percent: 2
            },
          ],
          policeOneJdZY: [
            {
                year: "2010",
                type: "申报",
                num: 100,
                addnum: 6,
                percent: 3
            },
            {
                year: "2010",
                type: "审核",
                num: 90,
                addnum: 6,
                percent: 3
            },
            {
                year: "2010",
                type: "审批",
                num: 80,
                addnum: 6,
                percent: 3
            },
            {
                year: "2011",
                type: "申报",
                num: 200,
                addnum: 6,
                percent: 3
            },
            {
                year: "2011",
                type: "审核",
                num: 180,
                addnum: 6,
                percent: 3
            },
            {
                year: "2011",
                type: "审批",
                num: 150,
                addnum: 6,
                percent: 3
            },
            {
                year: "2012",
                type: "申报",
                num: 200,
                addnum: 6,
                percent: 3
            },
            {
                year: "2012",
                type: "审核",
                num: 180,
                addnum: 6,
                percent: 3
            },
            {
                year: "2012",
                type: "审批",
                num: 170,
                addnum: 6,
                percent: 3
            },
            {
                year: "2013",
                type: "申报",
                num: 170,
                addnum: 6,
                percent: 3
            },
            {
                year: "2013",
                type: "审核",
                num: 150,
                addnum: 6,
                percent: 3
            },
            {
                year: "2013",
                type: "审批",
                num: 120,
                addnum: 6,
                percent: 3
            },
            {
                year: "2014",
                type: "申报",
                num: 220,
                addnum: 6,
                percent: 3
            },
            {
                year: "2014",
                type: "审核",
                num: 190,
                addnum: 6,
                percent: 3
            },
            {
                year: "2014",
                type: "审批",
                num: 160,
                addnum: 6,
                percent: 3
            },
            {
                year: "2015",
                type: "申报",
                num: 260,
                addnum: 6,
                percent: 3
            },
            {
                year: "2015",
                type: "审核",
                num: 240,
                addnum: 6,
                percent: 3
            },
            {
                year: "2015",
                type: "审批",
                num: 220,
                addnum: 6,
                percent: 3
            },
            {
                year: "2016",
                type: "申报",
                num: 260,
                addnum: 6,
                percent: 3
            },
            {
                year: "2016",
                type: "审核",
                num: 230,
                addnum: 6,
                percent: 3
            },
            {
                year: "2016",
                type: "审批",
                num: 200,
                addnum: 6,
                percent: 3
            },
            {
                year: "2017",
                type: "申报",
                num: 210,
                addnum: 6,
                percent: 3
            },
            {
                year: "2017",
                type: "审核",
                num: 190,
                addnum: 6,
                percent: 3
            },
            {
                year: "2017",
                type: "审批",
                num: 170,
                addnum: 6,
                percent: 3
            },
            {
                year: "2018",
                type: "申报",
                num: 230,
                addnum: 6,
                percent: 3
            },
            {
                year: "2018",
                type: "审核",
                num: 210,
                addnum: 6,
                percent: 3
            },
            {
                year: "2018",
                type: "审批",
                num: 200,
                addnum: 6,
                percent: 3
            },
            {
                year: "2019",
                type: "申报",
                num: 280,
                addnum: 6,
                percent: 3
            },
            {
                year: "2019",
                type: "审核",
                num: 240,
                addnum: 6,
                percent: 3
            },
            {
                year: "2019",
                type: "审批",
                num: 220,
                addnum: 6,
                percent: 3
            },
          ],
          policeCG: [
              {
                 value: 'police_zjj',
                 name: '总警监'
              },
              {
                 value: 'police_fzjj',
                 name: '副总警监'
              },
              {
                 value: 'police_one_jj',
                 name: '一级警监'
              },
              {
                 value: 'police_two_jj',
                 name: '二级警监'
              },
              {
                 value: 'police_tree_jj',
                 name: '三级警监'
              },
              {
                 value: 'police_one_jd',
                 name: '一级警督'
              },
              {
                 value: 'police_two_jd',
                 name: '二级警督'
              },
              {
                 value: 'police_three_jd',
                 name: '三级警督'
              },
              {
                 value: 'police_one_js',
                 name: '一级警司'
              },
              {
                 value: 'police_two_js',
                 name: '二级警司'
              },
              {
                 value: 'police_three_js',
                 name: '三级警司'
              },
              {
                 value: 'police_one_jy',
                 name: '一级警员'
              },
              {
                 value: 'police_two_jy',
                 name: '二级警员'
              },
          ],
          policeZY: [
              {
                 value: 'police_zyzjj',
                 name: '专业技术总警监'
              },
              {
                 value: 'police_zyfzjj',
                 name: '专业技术副总警监'
              },
              {
                 value: 'police_one_zyjj',
                 name: '专业技术一级警监'
              },
              {
                 value: 'police_two_zyjj',
                 name: '专业技术二级警监'
              },
              {
                 value: 'police_tree_zyjj',
                 name: '专业技术三级警监'
              },
              {
                 value: 'police_one_zyjd',
                 name: '专业技术一级警督'
              },
              {
                 value: 'police_two_zyjd',
                 name: '专业技术二级警督'
              },
              {
                 value: 'police_three_zyjd',
                 name: '专业技术三级警督'
              },
              {
                 value: 'police_one_zyjs',
                 name: '专业技术一级警司'
              },
              {
                 value: 'police_two_zyjs',
                 name: '专业技术二级警司'
              },
              {
                 value: 'police_three_zyjs',
                 name: '专业技术三级警司'
              },
              {
                 value: 'police_one_zyjy',
                 name: '专业技术一级警员'
              },
              {
                 value: 'police_two_zyjy',
                 name: '专业技术二级警员'
              },
          ]
	    }
	}

  //警衔类型切换
  handleSearchPoliceType = e => {
  	this.setState({
  		policeType: e
  	})
  };


  //警衔查询
  handleSearchStaff = e => {
  	this.setState({
  		staffBaseInfoType: e
  	})
    if (e === 'police_zjj') {
      this.setState({
        policeTitle: "总警监"
      })
    } else if(e === "police_fzjj"){
      this.setState({
        policeTitle: "副总警监"
      })
    }else if(e === "police_one_jj"){
      this.setState({
        policeTitle: "一级警监"
      })
    }else if(e === "police_two_jj"){
      this.setState({
        policeTitle: "二级警监"
      })
    }else if(e === "police_tree_jj"){
      this.setState({
        policeTitle: "三级警监"
      })
    }else if(e === "police_one_jd"){
      this.setState({
        policeTitle: "一级警督"
      })
    }else if (e === 'police_zyzjj') {
      this.setState({
        policeTitle: "专业技术总警监"
      })
    } else if(e === "police_zyfzjj"){
      this.setState({
        policeTitle: "专业技术副总警监"
      })
    }else if(e === "police_one_zyjj"){
      this.setState({
        policeTitle: "专业技术一级警监"
      })
    }else if(e === "police_two_zyjj"){
      this.setState({
        policeTitle: "专业技术二级警监"
      })
    }else if(e === "police_tree_zyjj"){
      this.setState({
        policeTitle: "专业技术三级警监"
      })
    }else if(e === "police_one_zyjd"){
      this.setState({
        policeTitle: "专业技术一级警督"
      })
    }
  };

  render() {
    const {
      loading,
    } = this.props;

    const {
      staffBaseInfoType,
      policeTitle,
      policeOneZjj,
      policeTwoFzjj,
      policeOneJj,
      policeTwoJj,
      policeThreeJj,
      policeOneJd,
      policeOneZjjZY,
      policeTwoFzjjZY,
      policeOneJjZY,
      policeTwoJjZY,
      policeThreeJjZY,
      policeOneJdZY,
      policeCG,
      policeZY,
      policeType
    } = this.state;
    let policeLineData;
    if (staffBaseInfoType === 'police_zjj') {
      policeLineData = policeOneZjj;
    } else if(staffBaseInfoType === "police_fzjj"){
      policeLineData = policeTwoFzjj;
    }else if(staffBaseInfoType === "police_one_jj"){
    	policeLineData = policeOneJj;
    }else if(staffBaseInfoType === "police_two_jj"){
    	policeLineData = policeTwoJj;
    }else if(staffBaseInfoType === "police_tree_jj"){
    	policeLineData = policeThreeJj;
    }else if(staffBaseInfoType === "police_one_jd"){
    	policeLineData = policeOneJd;
    }else if (staffBaseInfoType === 'police_zyzjj'){
      policeLineData = policeOneZjjZY;
    } else if(staffBaseInfoType === "police_zyfzjj"){
      policeLineData = policeTwoFzjjZY;
    }else if(staffBaseInfoType === "police_one_zyjj"){
    	policeLineData = policeOneJjZY;
    }else if(staffBaseInfoType === "police_two_zyjj"){
    	policeLineData = policeTwoJjZY;
    }else if(staffBaseInfoType === "police_tree_zyjj"){
    	policeLineData = policeThreeJjZY;
    }else if(staffBaseInfoType === "police_one_zyjd"){
    	policeLineData = policeOneJdZY;
    }

    let policeTypeData;
    if (policeType === 'police_cg') {
      policeTypeData = policeCG;
    } else if(policeType === "police_zy"){
      policeTypeData = policeZY;
    }

    return (
      <Card
        loading={loading}
        className={styles.salesCard}
        bordered={false}
        title={
          <FormattedMessage
            id="app.policestaticanalysis.policetrend"
            defaultMessage="The Proportion of Sales"
          />
        }
        extra={
          <div className={styles.salesCardExtra}>
            <div>
                <Select
                showSearch
                style={{minWidth: '120px',marginRight: '15px'}}
                defaultValue="police_cg"
                placeholder="请选择"
                onChange={this.handleSearchPoliceType}
                filterOption={(input, option) =>
                  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
                }
                >
                    <Option value="police_cg">行政警衔</Option>
                    <Option value="police_zy">技术警衔</Option>
                </Select>
                <Select
                showSearch
                style={{minWidth: '160px'}}
                defaultValue="police_zjj"
                placeholder="请选择"
                onChange={this.handleSearchStaff}
                filterOption={(input, option) =>
                  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
                }
                >
                {policeTypeData.map((val,index) => {
                  return <Option value={val.value}>{val.name}</Option>
                })}
      			    </Select>
            </div>
          </div>
        }
        style={{ marginTop: 24 }}
      >
        <PoliceStaticLine
          height={300}
          data={policeLineData}
          staffBaseInfoType={staffBaseInfoType}
          policeTitle={policeTitle}
        />
      </Card>
    )
  }

}


export default PoliceStaticTrend;
